import React from 'react';
import { NavLink } from 'react-router-dom';
import './index.less';
interface Props {
    to: string;
    title?: string;
}

const MyNavLink: React.FC<Props> = props => {
    const { children, ...prop } = props;
    console.log('object', children, prop);
    return <NavLink {...props} activeClassName="my-active" className="nav-link" />;
};

export default MyNavLink;
